//
//  TimelineUnitCell.h
//  Growth
//
//  Created by Hobo.Chen on 6/1/12.
//  Copyright (c) 2012 MEETStudio. All rights reserved.
//

#import <UIKit/UIKit.h>


#import "Photo.h"

#import "SDDataCache.h"

#import <QuartzCore/QuartzCore.h>

#import "SDImageView+SDWebCache.h"

#import "Config.h"

#import "PublicMethodEngine.h"

#import "CJSONDeserializer.h"

@protocol TimelineUnitCellDelegate;


@interface TimelineUnitCell : UITableViewCell{
    
    IBOutlet UIButton *iconButton;
    IBOutlet UIImageView *iconImageView;
    
    IBOutlet UILabel *dayLabel;
    IBOutlet UILabel *monthLabel;
    IBOutlet UILabel *hourLable;
    IBOutlet UILabel *adressLabel;
    
    IBOutlet UIView *conttentView;
    
    IBOutlet UILabel *nameLabel;
    IBOutlet UILabel *likeNumLabel;
    IBOutlet UILabel *commentNumLabel;
    
    IBOutlet UIImageView *imageView1;
    IBOutlet UIImageView *imageView2;
    IBOutlet UIImageView *imageView3;
    
    IBOutlet UIButton *fullScreenButton1;
    IBOutlet UIButton *fullScreenButton2;
    IBOutlet UIButton *fullScreenButton3;
    
    IBOutlet UILabel *conttentLabel;
    
    IBOutlet  UIView *visitView;
       
    NSArray *pictureList;
    
    
      
}

@property (assign) id<TimelineUnitCellDelegate> delegate; 

@property (nonatomic,retain)  IBOutlet UIImageView *imageView1;
@property (nonatomic,retain)  IBOutlet UIImageView *imageView2;
@property (nonatomic,retain)  IBOutlet UIImageView *imageView3;

@property (nonatomic, retain)  IBOutlet UIButton *iconButton;

- (void)loadCellViewWith:(NSDictionary *)dict;
- (IBAction)toPhotoBook:(NSArray *)images;

- (void)initTimelineIconButton:(NSDictionary *)dict;
- (void)initNewsIconButton:(NSDictionary *)dict;

-(NSString *)changeStringFommat:(NSString *)str;


//本地记录显示
- (void)loadcellViewWithLocal:(NSDictionary *)dict;
- (void)loadTimelineIconButtonWithLocal;


@end



//Delegate
@protocol TimelineUnitCellDelegate <NSObject>
@optional 

- (IBAction)toUserView:(id)sender;

//到宝宝设置
- (void)toTimelineSetting;

//滑动相册
- (void)toPhotoBook:(NSArray *)images;

- (void)toLocalFullSize:(NSArray *)images;

//到宝宝主页

- (void)toBabyTimelineView:(id)sender;


@end

